package com.zzc.fwzpxt.mapper;

import com.zzc.fwzpxt.entity.Article;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
  * 文章 article Mapper 接口
 * </p>
 *
 * @author XiaoBingBy
 * @since 2017-09-26
 */
public interface ArticleMapper extends BaseMapper<Article> {

    /**
     * 查询上一篇文章
     * @param id
     * @return
     */
    Article findPrevArticle(@Param("id")Long id, @Param("type")Long type);

    /**
     * 查询下一篇文章
     * @param id
     * @return
     */
    Article findNextArticle(@Param("id")Long id, @Param("type")Long type);

}